import request from '@/utils/request.js'

export const searchBuilding = (searchParams) => {
    return request({
        url: '/building',
        method: 'post',
        data: searchParams
    })
}

export const addBuilding = (addParams) => {
    return request({
        url: '/building/add',
        method: 'post',
        data: addParams
    })
}

export const updateBuilding = (updateParams) => {
    return request({
        url: '/building/update',
        method: 'post',
        data: updateParams
    })
}

export const deleteBuilding = (deleteParams) => {
    return request({
        url: '/building/delete',
        method: 'post',
        data: deleteParams
    })
}
